<!DOCTYPE html>
<html>

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>登录-闲物网</title>
  <style type="text/css">
    .t2 {
      width: 300px;
      height: 25px;
      line-height: 25px;
    }

    .t3 {
      width: 95%;
      height: 200px;
      line-height: 25px;
    }

    table td {
      border: none
    }

    .p2 {
      width: 120px;
      height: 30px;
      line-height: 30px;
      cursor: pointer;
      background: #242221;
      color: #FFFFFF;
      border: 1px solid #CCCCCC;
    }
  </style>
  <link rel="stylesheet" type="text/css" href="css/style.css" />
  <link rel="stylesheet" type="text/css" href="css/cp.css" />
</head>

<body>
  <div id="head">
    <div class="content">
      <div class="left">手机商城欢迎您！</div>
      <ul>
        <div id="dla" style="display: block;">
          <li><a href="reg.html">注册</a></li>
          <li>|</li>
          <li><a href="login.html">登录</a></li>
        </div>
        <div id="dlb" style="display: none;">
          <li><a href="#" onClick="out()">退出登录</a></li>
          <li class="line">|</li>
          <li>欢迎您！<span id="myu"></span></li>
        </div>
      </ul>
      <script src="js/date.js"></script>
      <script>
        var dq_user = sessionStorage.getItem('dq_user');
        if (dq_user.length > 0) {
          document.getElementById("dla").style.display = 'none';
          document.getElementById("dlb").style.display = 'block';
          document.getElementById("myu").innerHTML = dq_user;

        }
        else {
          document.getElementById("dlb").style.display = 'none';
          document.getElementById("dla").style.display = 'block';
        }
      </script>
      <div style="clear:both"></div>
    </div>
  </div>

  <div id="top">
    <div class="content">
      <div class="logo">
        <a href="index.html" title="手机商城"><img src="images/logo.png" alt="手机商城">闲物网</a>
      </div>

      <div style="clear:both"></div>
    </div>

  </div>
  </div>
  <div id="navBar">
    <div class="content hyc">

      <ul id="nav_ul">
        <li><a href="index.html">首页</a></li>

        <li><a href="gm1.html" target="_self">手机购买</a></li>
        <li><a href="mydd.html" target="_self">我的订单</a></li>
        <li><a href="contact.html" target="_self">联系我们</a></li>
        <div style="clear:both"></div>
      </ul>
    </div>
  </div>


  <div id="wrapper">

    <div class="banner">

      <img src="images/lb1.jpg" class="box2">

    </div>



    <div id="cont_wp">
      <div id="map">
        <div class="browse">现在位置： <a title="返回首页" href="index.html">首页</a>&gt;登录 &gt;</div>
      </div>
      <div class="reg_box">
        <form action="" method="post" name="form1">
          <table width="650" height="170" border="0" align="center">
            <tr>
              <td width="141" height="29">
                <div align="right" class="reg1">用户名</div>
              </td>
              <td width="499"><input name="u" type="text" class="p1" /></td>
            </tr>
            <tr>
              <td height="65">
                <div align="right" class="reg1">密码</div>
              </td>
              <td><input name="p" type="password" class="p1" /></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td><input type="button" value="登录" onClick="login()" class="p2" /></td>
            </tr>
          </table>
        </form>
        <script src="js/date.js"></script>
      </div>

    </div>



    <div style="clear:both"></div>
  </div>
  <div id="footer">
    <p>Copyright &#169; 2022, 手机商城, All Rights Reserved</p>
  </div>

</body>

</html>